package cn.uexpo.lhz.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ManyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ManyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("many.id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("many.id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("many.id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("many.id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("many.id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("many.id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("many.id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("many.id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("many.id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("many.id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("many.id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("many.id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andXxidIsNull() {
            addCriterion("many.xxid is null");
            return (Criteria) this;
        }

        public Criteria andXxidIsNotNull() {
            addCriterion("many.xxid is not null");
            return (Criteria) this;
        }

        public Criteria andXxidEqualTo(Integer value) {
            addCriterion("many.xxid =", value, "xxid");
            return (Criteria) this;
        }

        public Criteria andXxidNotEqualTo(Integer value) {
            addCriterion("many.xxid <>", value, "xxid");
            return (Criteria) this;
        }

        public Criteria andXxidGreaterThan(Integer value) {
            addCriterion("many.xxid >", value, "xxid");
            return (Criteria) this;
        }

        public Criteria andXxidGreaterThanOrEqualTo(Integer value) {
            addCriterion("many.xxid >=", value, "xxid");
            return (Criteria) this;
        }

        public Criteria andXxidLessThan(Integer value) {
            addCriterion("many.xxid <", value, "xxid");
            return (Criteria) this;
        }

        public Criteria andXxidLessThanOrEqualTo(Integer value) {
            addCriterion("many.xxid <=", value, "xxid");
            return (Criteria) this;
        }

        public Criteria andXxidIn(List<Integer> values) {
            addCriterion("many.xxid in", values, "xxid");
            return (Criteria) this;
        }

        public Criteria andXxidNotIn(List<Integer> values) {
            addCriterion("many.xxid not in", values, "xxid");
            return (Criteria) this;
        }

        public Criteria andXxidBetween(Integer value1, Integer value2) {
            addCriterion("many.xxid between", value1, value2, "xxid");
            return (Criteria) this;
        }

        public Criteria andXxidNotBetween(Integer value1, Integer value2) {
            addCriterion("many.xxid not between", value1, value2, "xxid");
            return (Criteria) this;
        }

        public Criteria andYyidIsNull() {
            addCriterion("many.yyid is null");
            return (Criteria) this;
        }

        public Criteria andYyidIsNotNull() {
            addCriterion("many.yyid is not null");
            return (Criteria) this;
        }

        public Criteria andYyidEqualTo(Integer value) {
            addCriterion("many.yyid =", value, "yyid");
            return (Criteria) this;
        }

        public Criteria andYyidNotEqualTo(Integer value) {
            addCriterion("many.yyid <>", value, "yyid");
            return (Criteria) this;
        }

        public Criteria andYyidGreaterThan(Integer value) {
            addCriterion("many.yyid >", value, "yyid");
            return (Criteria) this;
        }

        public Criteria andYyidGreaterThanOrEqualTo(Integer value) {
            addCriterion("many.yyid >=", value, "yyid");
            return (Criteria) this;
        }

        public Criteria andYyidLessThan(Integer value) {
            addCriterion("many.yyid <", value, "yyid");
            return (Criteria) this;
        }

        public Criteria andYyidLessThanOrEqualTo(Integer value) {
            addCriterion("many.yyid <=", value, "yyid");
            return (Criteria) this;
        }

        public Criteria andYyidIn(List<Integer> values) {
            addCriterion("many.yyid in", values, "yyid");
            return (Criteria) this;
        }

        public Criteria andYyidNotIn(List<Integer> values) {
            addCriterion("many.yyid not in", values, "yyid");
            return (Criteria) this;
        }

        public Criteria andYyidBetween(Integer value1, Integer value2) {
            addCriterion("many.yyid between", value1, value2, "yyid");
            return (Criteria) this;
        }

        public Criteria andYyidNotBetween(Integer value1, Integer value2) {
            addCriterion("many.yyid not between", value1, value2, "yyid");
            return (Criteria) this;
        }

        public Criteria andTagIsNull() {
            addCriterion("many.tag is null");
            return (Criteria) this;
        }

        public Criteria andTagIsNotNull() {
            addCriterion("many.tag is not null");
            return (Criteria) this;
        }

        public Criteria andTagEqualTo(String value) {
            addCriterion("many.tag =", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagNotEqualTo(String value) {
            addCriterion("many.tag <>", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagGreaterThan(String value) {
            addCriterion("many.tag >", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagGreaterThanOrEqualTo(String value) {
            addCriterion("many.tag >=", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagLessThan(String value) {
            addCriterion("many.tag <", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagLessThanOrEqualTo(String value) {
            addCriterion("many.tag <=", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagLike(String value) {
            addCriterion("many.tag like", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagNotLike(String value) {
            addCriterion("many.tag not like", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagIn(List<String> values) {
            addCriterion("many.tag in", values, "tag");
            return (Criteria) this;
        }

        public Criteria andTagNotIn(List<String> values) {
            addCriterion("many.tag not in", values, "tag");
            return (Criteria) this;
        }

        public Criteria andTagBetween(String value1, String value2) {
            addCriterion("many.tag between", value1, value2, "tag");
            return (Criteria) this;
        }

        public Criteria andTagNotBetween(String value1, String value2) {
            addCriterion("many.tag not between", value1, value2, "tag");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("many.createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("many.createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("many.createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("many.createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("many.createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("many.createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("many.createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("many.createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("many.createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("many.createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("many.createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("many.createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("many.remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("many.remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("many.remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("many.remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("many.remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("many.remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("many.remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("many.remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("many.remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("many.remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("many.remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("many.remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("many.remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("many.remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andExtstr1IsNull() {
            addCriterion("many.extstr1 is null");
            return (Criteria) this;
        }

        public Criteria andExtstr1IsNotNull() {
            addCriterion("many.extstr1 is not null");
            return (Criteria) this;
        }

        public Criteria andExtstr1EqualTo(String value) {
            addCriterion("many.extstr1 =", value, "extstr1");
            return (Criteria) this;
        }

        public Criteria andExtstr1NotEqualTo(String value) {
            addCriterion("many.extstr1 <>", value, "extstr1");
            return (Criteria) this;
        }

        public Criteria andExtstr1GreaterThan(String value) {
            addCriterion("many.extstr1 >", value, "extstr1");
            return (Criteria) this;
        }

        public Criteria andExtstr1GreaterThanOrEqualTo(String value) {
            addCriterion("many.extstr1 >=", value, "extstr1");
            return (Criteria) this;
        }

        public Criteria andExtstr1LessThan(String value) {
            addCriterion("many.extstr1 <", value, "extstr1");
            return (Criteria) this;
        }

        public Criteria andExtstr1LessThanOrEqualTo(String value) {
            addCriterion("many.extstr1 <=", value, "extstr1");
            return (Criteria) this;
        }

        public Criteria andExtstr1Like(String value) {
            addCriterion("many.extstr1 like", value, "extstr1");
            return (Criteria) this;
        }

        public Criteria andExtstr1NotLike(String value) {
            addCriterion("many.extstr1 not like", value, "extstr1");
            return (Criteria) this;
        }

        public Criteria andExtstr1In(List<String> values) {
            addCriterion("many.extstr1 in", values, "extstr1");
            return (Criteria) this;
        }

        public Criteria andExtstr1NotIn(List<String> values) {
            addCriterion("many.extstr1 not in", values, "extstr1");
            return (Criteria) this;
        }

        public Criteria andExtstr1Between(String value1, String value2) {
            addCriterion("many.extstr1 between", value1, value2, "extstr1");
            return (Criteria) this;
        }

        public Criteria andExtstr1NotBetween(String value1, String value2) {
            addCriterion("many.extstr1 not between", value1, value2, "extstr1");
            return (Criteria) this;
        }

        public Criteria andExtstr2IsNull() {
            addCriterion("many.extstr2 is null");
            return (Criteria) this;
        }

        public Criteria andExtstr2IsNotNull() {
            addCriterion("many.extstr2 is not null");
            return (Criteria) this;
        }

        public Criteria andExtstr2EqualTo(String value) {
            addCriterion("many.extstr2 =", value, "extstr2");
            return (Criteria) this;
        }

        public Criteria andExtstr2NotEqualTo(String value) {
            addCriterion("many.extstr2 <>", value, "extstr2");
            return (Criteria) this;
        }

        public Criteria andExtstr2GreaterThan(String value) {
            addCriterion("many.extstr2 >", value, "extstr2");
            return (Criteria) this;
        }

        public Criteria andExtstr2GreaterThanOrEqualTo(String value) {
            addCriterion("many.extstr2 >=", value, "extstr2");
            return (Criteria) this;
        }

        public Criteria andExtstr2LessThan(String value) {
            addCriterion("many.extstr2 <", value, "extstr2");
            return (Criteria) this;
        }

        public Criteria andExtstr2LessThanOrEqualTo(String value) {
            addCriterion("many.extstr2 <=", value, "extstr2");
            return (Criteria) this;
        }

        public Criteria andExtstr2Like(String value) {
            addCriterion("many.extstr2 like", value, "extstr2");
            return (Criteria) this;
        }

        public Criteria andExtstr2NotLike(String value) {
            addCriterion("many.extstr2 not like", value, "extstr2");
            return (Criteria) this;
        }

        public Criteria andExtstr2In(List<String> values) {
            addCriterion("many.extstr2 in", values, "extstr2");
            return (Criteria) this;
        }

        public Criteria andExtstr2NotIn(List<String> values) {
            addCriterion("many.extstr2 not in", values, "extstr2");
            return (Criteria) this;
        }

        public Criteria andExtstr2Between(String value1, String value2) {
            addCriterion("many.extstr2 between", value1, value2, "extstr2");
            return (Criteria) this;
        }

        public Criteria andExtstr2NotBetween(String value1, String value2) {
            addCriterion("many.extstr2 not between", value1, value2, "extstr2");
            return (Criteria) this;
        }

        public Criteria andExtstr3IsNull() {
            addCriterion("many.extstr3 is null");
            return (Criteria) this;
        }

        public Criteria andExtstr3IsNotNull() {
            addCriterion("many.extstr3 is not null");
            return (Criteria) this;
        }

        public Criteria andExtstr3EqualTo(String value) {
            addCriterion("many.extstr3 =", value, "extstr3");
            return (Criteria) this;
        }

        public Criteria andExtstr3NotEqualTo(String value) {
            addCriterion("many.extstr3 <>", value, "extstr3");
            return (Criteria) this;
        }

        public Criteria andExtstr3GreaterThan(String value) {
            addCriterion("many.extstr3 >", value, "extstr3");
            return (Criteria) this;
        }

        public Criteria andExtstr3GreaterThanOrEqualTo(String value) {
            addCriterion("many.extstr3 >=", value, "extstr3");
            return (Criteria) this;
        }

        public Criteria andExtstr3LessThan(String value) {
            addCriterion("many.extstr3 <", value, "extstr3");
            return (Criteria) this;
        }

        public Criteria andExtstr3LessThanOrEqualTo(String value) {
            addCriterion("many.extstr3 <=", value, "extstr3");
            return (Criteria) this;
        }

        public Criteria andExtstr3Like(String value) {
            addCriterion("many.extstr3 like", value, "extstr3");
            return (Criteria) this;
        }

        public Criteria andExtstr3NotLike(String value) {
            addCriterion("many.extstr3 not like", value, "extstr3");
            return (Criteria) this;
        }

        public Criteria andExtstr3In(List<String> values) {
            addCriterion("many.extstr3 in", values, "extstr3");
            return (Criteria) this;
        }

        public Criteria andExtstr3NotIn(List<String> values) {
            addCriterion("many.extstr3 not in", values, "extstr3");
            return (Criteria) this;
        }

        public Criteria andExtstr3Between(String value1, String value2) {
            addCriterion("many.extstr3 between", value1, value2, "extstr3");
            return (Criteria) this;
        }

        public Criteria andExtstr3NotBetween(String value1, String value2) {
            addCriterion("many.extstr3 not between", value1, value2, "extstr3");
            return (Criteria) this;
        }

        public Criteria andExtstr4IsNull() {
            addCriterion("many.extstr4 is null");
            return (Criteria) this;
        }

        public Criteria andExtstr4IsNotNull() {
            addCriterion("many.extstr4 is not null");
            return (Criteria) this;
        }

        public Criteria andExtstr4EqualTo(String value) {
            addCriterion("many.extstr4 =", value, "extstr4");
            return (Criteria) this;
        }

        public Criteria andExtstr4NotEqualTo(String value) {
            addCriterion("many.extstr4 <>", value, "extstr4");
            return (Criteria) this;
        }

        public Criteria andExtstr4GreaterThan(String value) {
            addCriterion("many.extstr4 >", value, "extstr4");
            return (Criteria) this;
        }

        public Criteria andExtstr4GreaterThanOrEqualTo(String value) {
            addCriterion("many.extstr4 >=", value, "extstr4");
            return (Criteria) this;
        }

        public Criteria andExtstr4LessThan(String value) {
            addCriterion("many.extstr4 <", value, "extstr4");
            return (Criteria) this;
        }

        public Criteria andExtstr4LessThanOrEqualTo(String value) {
            addCriterion("many.extstr4 <=", value, "extstr4");
            return (Criteria) this;
        }

        public Criteria andExtstr4Like(String value) {
            addCriterion("many.extstr4 like", value, "extstr4");
            return (Criteria) this;
        }

        public Criteria andExtstr4NotLike(String value) {
            addCriterion("many.extstr4 not like", value, "extstr4");
            return (Criteria) this;
        }

        public Criteria andExtstr4In(List<String> values) {
            addCriterion("many.extstr4 in", values, "extstr4");
            return (Criteria) this;
        }

        public Criteria andExtstr4NotIn(List<String> values) {
            addCriterion("many.extstr4 not in", values, "extstr4");
            return (Criteria) this;
        }

        public Criteria andExtstr4Between(String value1, String value2) {
            addCriterion("many.extstr4 between", value1, value2, "extstr4");
            return (Criteria) this;
        }

        public Criteria andExtstr4NotBetween(String value1, String value2) {
            addCriterion("many.extstr4 not between", value1, value2, "extstr4");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}